home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: tank.news.pipex.net!pipex!warwick!bsmail!talisker!nathan
- From: nathan@pact.srf.ac.uk (Nathan Sidwell)
- Subject: Re: confusion between putchar and printf
- Message-ID: <Do7AAH.IDx@uns.bris.ac.uk>
- Sender: usenet@uns.bris.ac.uk (Usenet news owner)
- Nntp-Posting-Host: talisker.pact.srf.ac.uk
- Organization: Inmos
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4i1v2n$30o@news.azstarnet.com> <4i28j7INN65d@keats.ugrad.cs.ubc.ca> <4i5lfv$ltv@vivaldi.telepac.pt>
- Date: Wed, 13 Mar 1996 09:56:41 GMT
-
- VORTEX (vortex@telepac.pt) wrote:
- : c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
-
- : >In article <4i1v2n$30o@news.azstarnet.com>,
- : >Howard Salmon <captarm@azstarnet.com> wrote:
- : >int main()
- : >{
- [snip]
- : > return 0; /* all C programs need to return an exit status */
- : >}
-
- : No they don'r
-
- : Just star with void main(void) and you need to return any value
-
- Shut the f*** up. void main(void) invokes implementation defined behaviour.
- It has been beaten to death a million times here. If you still don't
- understand this read the
- FAQ (http://www.eskimo.com/~scs/C-faq/top.html) questions 11.12-15.
-
- nathan
- --
- Nathan Sidwell Holder of the Xmris home page
- Chameleon Architecture Group at SGS-Thomson, formerly Inmos
- http://www.pact.srf.ac.uk/~nathan/ Tel 0117 9707182
- nathan@inmos.co.uk or nathan@bristol.st.com or nathan@pact.srf.ac.uk
-